import request from '@/utils/request'

// 查询人员登记列表
export function getTodayRegisterinquirylist(query) {
  return request({
    url: '/physical/inquiry/list',
    method: 'get',
    params: query
  })
}
export function getBasediseaselist(query) {
  return request({
    url: '/basic/basedisease/list',
    method: 'get',
    params: query
  })
}
export function getBasesymptomlist(query) {
  return request({
    url: '/basic/basesymptom/list',
    method: 'get',
    params: query
  })
}
//保存
export function Saveinquiry(data) {
  return request({
    url: '/physical/inquiry/Saveinquiry',
    method: 'post',
    data: data
  })
}
//撤销
export function Revokeinquiry(data) {
  return request({
    url: '/physical/inquiry/Revokeinquiry',
    method: 'post',
    data: data
  })
}
// 查询体检编号
export function getRegisterinquiryByPhysical(data) {
  return request({
    url: '/physical/inquiry/getRegisterinquiryByPhysical',
    method: 'post',
    data: data
  })
}
// 通过体检编号查人员
export function getRegisterinquiryBycheckcode(checkcode) {
  return request({
    url: '/physical/inquiry/getRegisterinquiryBycheckcode/' + checkcode,
    method: 'get'
  })
}
// 查更多人员
export function getRegisterinquiryBywhere(query) {
  return request({
    url: '/physical/inquiry/getRegisterinquiryBywhere',
    method: 'get',
    params: query
  })
}

